<Open Tag=[<{]>
<Close Tag=[}>]>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="frm<{OwnerU}>_<{TableU}>.aspx.vb" Inherits="<{Application}>.frm<{OwnerU}>_<{TableU}>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <link rel="stylesheet" href="../Styles/Reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../Styles/Site.css" type="text/css" media="screen" />
        <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
            EnableScriptLocalization="true" ID="ScriptManager1" />
        <uc:OkMessageBox ID="ec" runat="server" />
        <section id="content">
            <h2><{Head}></h2>
            <div style="height: 10px"></div>
            <div style="text-align: center;">
                <div style="display: inline-block;">
                    <asp:DropDownList CssClass="input" ID="cmbFields" Width="150px" runat="server" CausesValidation="False"></asp:DropDownList>
                    <asp:DropDownList CssClass="input" ID="cmbCondition" Width="150px" runat="server" CausesValidation="False"></asp:DropDownList>
                    <asp:TextBox CssClass="input" ID="txtSearch" Width="100px" runat="server"></asp:TextBox>
                    <asp:Button ID="butSearch" Width="70px" Text="Search" runat="server" CausesValidation="False"></asp:Button>
                    <asp:Button ID="butShowAll" Width="70px" Text="Show All" runat="server" CausesValidation="False"></asp:Button>
                </div>
            </div>
            <div style="height: 40px"></div>
            <div>
                <div style="float: left;">
                    <asp:DropDownList ID="ddlFile" Width="100px" runat="server" CssClass="input">
                        <asp:ListItem Value=".pdf">Pdf</asp:ListItem>
                        <asp:ListItem Value=".xls">Excel</asp:ListItem>
                        <asp:ListItem Value=".doc">Word</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnExport" Width="70px" runat="server" Text="Export" CausesValidation="False"></asp:Button>
                </div>
                <div style="float: right;">
                    <asp:DropDownList CssClass="input" ID="cmbRecords" Width="100px" runat="server" CausesValidation="False"></asp:DropDownList>
                    <asp:Button ID="butRecords" Text="Records" Width="70px" runat="server" CausesValidation="False"></asp:Button>
                </div>
            </div>
            <div style="height: 40px"></div>
        <%-------------------------------------%>
            <div style="text-align: center;">
                <div style="display: inline-block; overflow: auto;">
                <%-----
                    If GridView (grd<{TableU}>) width is bigger than web-page (or screen) width (for Mobile and Tablet)...
                    1) comment above 2 lines, and
                    2) uncomment following 2 lines
                -------%>
        <%--<div style="width: 100%;">
                <div style="overflow: auto;">--%>
                <%-------------------------------------%>
					    <{If Loop}>
        				    	<{IsPKey}>
                    <asp:GridView id="grd<{TableU}>" runat="server" AllowPaging="True" PageSize="5" AutoGenerateColumns="False" AllowSorting="True" DataKeyNames="<{FieldU}>" 
                        OnRowCancelingEdit="grd<{TableU}>_RowCancelingEdit" OnRowDataBound="grd<{TableU}>_RowDataBound" OnRowEditing="grd<{TableU}>_RowEditing" 
                        OnRowUpdating="grd<{TableU}>_RowUpdating" OnRowCommand="grd<{TableU}>_RowCommand" OnRowDeleting="grd<{TableU}>_RowDeleting" ShowFooter="True" Font-Size="Medium" >
    					    	<{ExitLoop}>
                                            <{/If Loop}>
                                            <{If Loop}>
                                            	<{IsNotPKey}>
                                            	<{And}>
                                            	<{IsIdentity}>
                    <asp:GridView id="grd<{TableU}>" runat="server" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" DataKeyNames="<{FieldU}>" 
                        OnRowCancelingEdit="grd<{TableU}>_RowCancelingEdit" OnRowDataBound="grd<{TableU}>_RowDataBound" OnRowEditing="grd<{TableU}>_RowEditing" 
                        OnRowUpdating="grd<{TableU}>_RowUpdating" OnRowCommand="grd<{TableU}>_RowCommand" OnRowDeleting="grd<{TableU}>_RowDeleting" ShowFooter="True" Font-Size="Medium" >
                                            	<{ExitLoop}>
                                            <{/If Loop}>
                                            <{If Loop}>
                                            	<{IsNotIdentityCount}>
                                            	<{And}>
                                            	<{IsNotPKeyCount}>
                    <asp:GridView id="grd<{TableU}>" runat="server" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" DataKeyNames="<{FieldU}>" 
                        OnRowCancelingEdit="grd<{TableU}>_RowCancelingEdit" OnRowDataBound="grd<{TableU}>_RowDataBound" OnRowEditing="grd<{TableU}>_RowEditing" 
                        OnRowUpdating="grd<{TableU}>_RowUpdating" OnRowCommand="grd<{TableU}>_RowCommand" OnRowDeleting="grd<{TableU}>_RowDeleting" ShowFooter="True" Font-Size="Medium" >
                                            	<{ExitLoop}>
                                            <{/If Loop}>
                        <Columns>
								<{If Loop}>
-----------------------------------------------------------------------------------------------------<{Comment}>
	          							<{IsMoney}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;" BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" style="text-align: right;" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>", "{0:C}") %>' style="text-align: right;"></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsSmallMoney}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;" BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" style="text-align: right;" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>", "{0:C}") %>' style="text-align: right;"></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsCheckBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:CheckBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Checked='<%# Eval("<{FieldU}>") %>' style="text-align: center;" BackColor="BlanchedAlmond"></asp:CheckBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
									</EditItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" style="text-align: center;" BackColor="LightYellow"></asp:CheckBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="lbl<{FieldU}>" width="100px" runat="server" Checked='<%# Eval("<{FieldU}>") %>' style="text-align: center;"></asp:CheckBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsNumericUpDown}>
                  							<{And}>
                  							<{IsNotFKey}>
                  							<{And}>
	          							<{IsNotMoney}>
                  							<{And}>
									<{IsNotSmallMoney}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;" BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" style="text-align: right;" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;"></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsNumericUpDown}>
                  							<{And}>
                  							<{IsFKey}>
                  							<{And}>
	          							<{IsNotMoney}>
                  							<{And}>
									<{IsNotSmallMoney}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;" BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" style="text-align: right;" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>' style="text-align: right;"></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsDateTimePicker}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                     <table>
                                          <tr>
                                               <td>
                                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>", "{0:d}") %>' BackColor="BlanchedAlmond"></asp:TextBox>
                                               </td>
                                               <td>
                                                    <asp:ImageButton runat="Server" ID="Image<{FieldU}>" ImageUrl="/images/Calendar.png" AlternateText="Click to show calendar" CausesValidation="False" BackColor="BlanchedAlmond" /><br />
                                                    <ajaxToolkit:CalendarExtender ID="calendarButtonExtender<{FieldU}>" runat="server" TargetControlID="txt<{FieldU}>" PopupButtonID="Image<{FieldU}>" />
                                               </td>
                                          </tr>
                                     </table>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                     <table>
                                          <tr>
                                               <td>
                                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:TextBox>
                                               </td>
                                               <td>
                                                    <asp:ImageButton runat="Server" ID="ImageNew<{FieldU}>" ImageUrl="/images/Calendar.png" AlternateText="Click to show calendar" CausesValidation="False" BackColor="LightYellow" /><br />
                                                    <ajaxToolkit:CalendarExtender ID="calendarButtonExtenderNew<{FieldU}>" runat="server" TargetControlID="txtNew<{FieldU}>" PopupButtonID="ImageNew<{FieldU}>" />
                                               </td>
                                          </tr>
                                     </table>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>", "{0:d}") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsTextBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsMaskedTextBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsMultilineTextBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsRichTextBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" Text='<%# Eval("<{FieldU}>") %>' BackColor="BlanchedAlmond"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:TextBox ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:TextBox>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsComboBox}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{FieldU}>">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" SelectedValue='<%# Eval("<{FieldU}>") %>' BackColor="BlanchedAlmond"></asp:DropDownList>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:DropDownList ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" BackColor="LightYellow"></asp:DropDownList>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{FieldU}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
									<{IsComboBox (Db)}>
                            <asp:TemplateField HeaderText="<{FieldC}>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" SortExpression="<{RDisplayField}>">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="txt<{FieldU}>" width="100px" runat="server" CssClass="input" DataTextField="<{Field}>" DataValueField="<{FieldU}>" BackColor="BlanchedAlmond"></asp:DropDownList>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </EditItemTemplate>
                                <FooterTemplate>
                                    <asp:DropDownList ID="txtNew<{FieldU}>" width="100px" runat="server" CssClass="input" DataTextField="<{Field}>" DataValueField="<{FieldU}>" BackColor="LightYellow"></asp:DropDownList>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lbl<{FieldU}>" width="100px" runat="server" Text='<%# Eval("<{Field}>") %>'></asp:Label>
                                    <asp:Label runat="server" Width="5px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
-----------------------------------------------------------------------------------------------------<{Comment}>
								<{/If Loop}>
                            <asp:TemplateField ShowHeader="False" HeaderStyle-HorizontalAlign="Left">
                                <EditItemTemplate>
                                     <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="False" CommandName="Update" Text="Update"></asp:LinkButton>
                                     <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                                </EditItemTemplate>
                                <FooterTemplate>
                                     <asp:LinkButton ID="lnkAdd" runat="server" CausesValidation="False" CommandName="Insert" Text="Insert"></asp:LinkButton>
                                </FooterTemplate>
                                <ItemTemplate>
                                     <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowDeleteButton="True" ShowHeader="True" />
                        </Columns>
                        <PagerSettings Mode="Numeric" />
                        <PagerStyle HorizontalAlign="Center" CssClass="GridPager" />
                        <AlternatingRowStyle BackColor="AliceBlue" />
                    </asp:GridView><br />
					    <{If Loop}>
        				    	<{IsPKey}>
                    <input id="htmlHiddenSortExpression" type="hidden" value="<{FieldU}>" name="htmlHiddenSortExpression" runat="server" />
    					    	<{ExitLoop}>
                                            <{/If Loop}>
                                            <{If Loop}>
                                            	<{IsNotPKey}>
                                            	<{And}>
                                            	<{IsIdentity}>
                    <input id="htmlHiddenSortExpression" type="hidden" value="<{FieldU}>" name="htmlHiddenSortExpression" runat="server" />
                                            	<{ExitLoop}>
                                            <{/If Loop}>
                                            <{If Loop}>
                                            	<{IsNotIdentityCount}>
                                            	<{And}>
                                            	<{IsNotPKeyCount}>
                    <input id="htmlHiddenSortExpression" type="hidden" value="<{FieldU}>" name="htmlHiddenSortExpression" runat="server" />
                                            	<{ExitLoop}>
                                            <{/If Loop}>
                </div>
            </div>
        </section>
</asp:Content>
<Open Tag=[<]>
<Close Tag=[>]>
